/*  1:   */ package com.atomikos.icatch.jta;
/*  2:   */ 
/*  3:   */ import javax.transaction.xa.XAException;
/*  4:   */ import javax.transaction.xa.XAResource;
/*  5:   */ 
/*  6:   */ class XAResourceKey
/*  7:   */ {
/*  8:   */   private XAResource xares;
/*  9:   */   
/* 10:   */   public XAResourceKey(XAResource xares)
/* 11:   */   {
/* 12:52 */     this.xares = xares;
/* 13:   */   }
/* 14:   */   
/* 15:   */   public boolean equals(Object o)
/* 16:   */   {
/* 17:58 */     boolean ret = false;
/* 18:59 */     if ((o instanceof XAResourceKey))
/* 19:   */     {
/* 20:60 */       XAResourceKey other = (XAResourceKey)o;
/* 21:   */       try
/* 22:   */       {
/* 23:63 */         ret = (other.xares == this.xares) || (other.xares.isSameRM(this.xares));
/* 24:   */       }
/* 25:   */       catch (XAException e) {}
/* 26:   */     }
/* 27:72 */     return ret;
/* 28:   */   }
/* 29:   */   
/* 30:   */   public int hashCode()
/* 31:   */   {
/* 32:79 */     return this.xares.getClass().getName().toString().hashCode();
/* 33:   */   }
/* 34:   */   
/* 35:   */   public String toString()
/* 36:   */   {
/* 37:84 */     return this.xares.toString();
/* 38:   */   }
/* 39:   */ }


/* Location:           C:\myfile\mysoft\apache-maven-3.5.0-bin\apache-maven-3.5.0\myrep\com\atomikos\transactions-jta\3.7.0\transactions-jta-3.7.0.jar
 * Qualified Name:     com.atomikos.icatch.jta.XAResourceKey
 * JD-Core Version:    0.7.0.1
 */